//用户登陆接口"/admin/acl/index/login",
import type {
  LoginParams,
  LoginRequestResult,
  getRequestUserInfo,
} from "./type/index";
import request from "@/utils/request";
//登录接口
export const loginUser = (data: LoginParams) =>
  request.post<any, LoginRequestResult>("/admin/acl/index/login", data);
//获取用户信息接口
export const getUserInfo = () =>
  request.get<any, getRequestUserInfo>("/admin/acl/index/info");
//退出登陆
export const loginOut = () => request.post("/admin/acl/index/logout");
